Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add energy and particle specimen to hepmc3 run information attributes #7

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

simonge
Copy link

@simonge simonge commented May 25, 2023

Briefly, what does this PR introduce?

Additional parameters based on the selected afterburner settings are included in the output hepmc header, run info. This should allow them to be passed along the simulation chain.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

no

Does this PR change default behavior?

no

@simonge simonge requested a review from DraTeots May 25, 2023 19:46
cpp/abconv/Converter.cc Outdated Show resolved Hide resolved
cpp/afterburner/EicConfigurator.cc Show resolved Hide resolved
@DraTeots
Copy link
Contributor

I don't have a strong opinion on the above. But it would be good to choose vocabulary and be consistent across the code

cpp/afterburner/EicConfigurator.cc Outdated Show resolved Hide resolved
cpp/afterburner/EicConfigurator.cc Outdated Show resolved Hide resolved
cpp/afterburner/EicConfigurator.cc Outdated Show resolved Hide resolved
@DraTeots
Copy link
Contributor

Hello! Any updates on this?

@simonge
Copy link
Author

simonge commented Aug 26, 2023

Couple of notes before I try and remind myself where this got to.
AIDASoft/DD4hep#1147 - Should allow this information to be persisted through the simulation (and possibly used in the geometry construction)

The HEPMC_Merger will also need to copy across this information.

@simonge
Copy link
Author

simonge commented Aug 26, 2023

I believe for automatically determined files it works fine, I have only tested e-p of various energies. There may be some issues if the config clashes with the automatic values.

@DraTeots
Copy link
Contributor

  1. Are there any updates on this? Does this need a review or some work to be finished?

Thanks!

@simonge
Copy link
Author

simonge commented Dec 14, 2023

It works correctly for the files I've tested it on so could be reviewed, tested by someone else, and merged.

I think I need some information on how the afterburner is actually being used by everyone else to check it doesn't break their workflow or at least adds the correct functionality. How much effort would it be to set up some CI tests? This is something I've no experience with.

@veprbl
Copy link
Member

veprbl commented Dec 14, 2023

@simonge Could you, please, rebase so that the diff is easier to review?

@simonge
Copy link
Author

simonge commented Dec 14, 2023

Has it not already been rebased? Looks like I might have messed up the order somehow.

@veprbl veprbl force-pushed the add_energy_to_run_attributes branch from c6e2297 to 0ce6d7a Compare May 30, 2024 20:10
@veprbl
Copy link
Member

veprbl commented May 30, 2024

We also need an implementation in https://github.com/eic/eicSimuBeamEffects

@simonge
Copy link
Author

simonge commented May 30, 2024

We also need an implementation in https://github.com/eic/eicSimuBeamEffects

Are events generated using eicSimuBeamEffects used beyond comparing the position and beam momentum distributions at the IP?

I would propose all production events get passed through the afterburner independent of whether they already have beam effects added so that the run attributes can be added if they weren't already by the generator.

@simonge
Copy link
Author

simonge commented May 30, 2024

More importantly, perhaps, these attributes need to be compared between the input files and preserved in the merger eic/HEPMC_Merger#4

@veprbl
Copy link
Member

veprbl commented May 30, 2024

We also need an implementation in https://github.com/eic/eicSimuBeamEffects

Are events generated using eicSimuBeamEffects used beyond comparing the position and beam momentum distributions at the IP?

This serves as the entry point for all pythia8 simulations for ePIC. It doesn't go through AB.
cc @bspage912

I would propose all production events get passed through the afterburner independent of whether they already have beam effects added so that the run attributes can be added if they weren't already by the generator.

On a similar topic, I'm not sure how we'd even roll out this soon for existing datasets. First step is to validate that this does not break anything, so we can ship a version of AB with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants